﻿using System;
using System.ComponentModel;

namespace AuthoSYS.Web.ViewModels
{
    public class BaseViewModel
    {
        public string Id { get; set; }

        [DisplayName("Lock")]
        public bool IsLocked { get; set; }

        [DisplayName("Created By")]
        public string CreatedBy { get; set; }

        [DisplayName("Modified By")]
        public string ModifiedBy { get; set; }

        [DisplayName("Created On")]
        public DateTime? CreatedOn { get; set; }

        [DisplayName("Modified On")]
        public DateTime? ModifiedOn { get; set; }

        [DisplayName("Created On")]
        public string CreatedOnToString
        {
            get
            {
                return this.CreatedOn.ToString();
            }
        }

        [DisplayName("Modified On")]
        public string ModifiedOnToString
        {
            get
            {
                return this.ModifiedOn.ToString();
            }
        }
    }
}